# $Id: PKGBUILD 78424 2012-10-18 00:22:43Z allan $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Aaron Schaefer <aaron@elasticdog.com>

pkgbase=python-pexpect
pkgname=(python2-pexpect)
pkgver=2.4
pkgrel=2
pkgdesc='Make Python a better tool for controlling and automating other programs'
arch=('any')
url='http://pexpect.sourceforge.net/'
license=('MIT')
depends=('python2')
conflicts=('python-pexpect<=2.4')
replaces=('python-pexpect<=2.4')
source=("http://pypi.python.org/packages/source/p/pexpect/pexpect-$pkgver.tar.gz")
sha256sums=('43c788f59dcf4bed677fd0b16891787dbf747e210ffedb6e90156fbbbd4d3b7b')

package_python2-pexpect() {
  cd $srcdir/pexpect-$pkgver
  sed -i 's:#!/usr/bin/env python:#!/usr/bin/python2:' FSM.py
  python2 setup.py install --root=$pkgdir
  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}

# vim:set ts=2 sw=2 et:
